<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
                             "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:cgdt="http://cgdt.org.br/tags" xmlns:a="http://richfaces.org/a4j">

	<rich:column>
		<f:facet name="header">Nome</f:facet>
		<h:outputText value="#{item.nome}" />
	</rich:column>

	<rich:column>
		<f:facet name="header">CPF</f:facet>
		<h:outputText value="#{item.cpf}" />
	</rich:column>

	<rich:column>
		<f:facet name="header">CNPJ</f:facet>
		<h:outputText value="#{item.cnpj}" />
	</rich:column>

	<rich:column>
		<f:facet name="header">Acoes</f:facet>
		<h:panelGrid columns="2">
			<a:commandLink value="Editar" title="Editar"
				action="#{pessoaAction.prepararEdicao()}">
				<a:actionparam assignTo="#{pessoaAction.idPessoaSelecionada}"
					name="idPessoaSelecionada" value="#{item.id}" />
				<s:conversationPropagation type="join" />
			</a:commandLink>

			<s:link value="Excluir" action="#{pessoaAction.remover}">
				<f:param name="pessoaId" value="#{item.id}" />
			</s:link>
		</h:panelGrid>
	</rich:column>

</ui:composition>